#ifndef __SCEAUDIO_H
#define __SCEAUDIO_H

#include "../hle.h"

#define MAX_CHANNEL 8

typedef enum
{
    AUDIO_FORMAT_STEREO = 0,
    AUDIO_FORMAT_MONO   = 0x10
} SceAudioFormat;

typedef struct
{
    u8 reserved;
    u8 running;

    u32 format;
    u32 sampleCount;
    u32 sampleAddr;

    u32 leftVol;
    u32 rightVol;
} AudioChannel;

void __AudioInit();
void __AudioUpdate();
void __AudioShutdown();
void __AudioPlay(AudioChannel *chan, u8 channelId);

#endif

